<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title>[多图]包包-包包单品,包包女装-美丽说</title>
	<link rel="stylesheet" type="text/css" href="http://localhost/meilishuo/template/default/css/list.css"/>
</head>
<body>
	<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<script type="text/javascript" src="http://localhost/meilishuo/Static/jquery/jquery-1.7.2.min.js">
	
</script>
<script type="text/javascript">
	$(function(){
		$("#nav .outer .container .top_cate").hover(function(){
			$(this).children('.second_stage').show();
		},function(){
			$(this).children('.second_stage').hide();
		})
	})
</script>
<!--顶部登录注册区域开始-->
	<div id="top">
		<div class="head">
			<ul class="container">
				    <?php if($hd['session']['username'] && $hd['session']['uid']){ ?>
					<li><a class="out" href="<?php echo U('Member/out');?>">退出</a></li>
					<li class="myself"><a  href=""><img src="http://localhost/meilishuo/template/default/img/my_face.jpg" class="my_face" alt="" /><?php echo $hd['session']['username'];?></a></li>
					<li><a href=""><span class="my_love"></span>我的喜欢</a></li>
				<?php }else{ ?>
				<li><a class="first" href=""><span class="weixin"></span>微信登陆</a></li>
				<li><a href=""><span class="qq"></span>QQ登陆</a></li>
				<li><a href="<?php echo U('Member/login');?>">登陆</a></li>
				<li><a href="<?php echo U('Member/register');?>">注册</a></li>
				<?php } ?>
				<li><a href="<?php echo U('Cart/ajax_add_cart');?>"><span class="my_car"></span>我的购物车<i class="num">    <?php if($_SESSION['cart']['goods']){ ?> <?php  echo count($_SESSION['cart']['goods']) ?><?php }else{ ?>0<?php } ?> </i></a></li>
				<li><a href="<?php echo U('Porder/index');?>"><span class="my_order"></span>我的订单</a></li>
				<li><a href=""><span class="download"></span>下载App</a></li>
				<li><a class="custom" href="">客户服务</a></li>
			</ul>
		</div>
	</div>
	<!--顶部登录注册结束-->
	<!--搜索区域开始-->
		<div id="search"><!--search-->
			<div class="outside"><!--outside-->
				<a class="logo" href=""></a>
				<div class="container"><!--container-->
					<div class="baobei">
						<a href="" class="cat">
							宝贝<span class="triangle"></span>
						</a>
					</div><!--baobei-->
					<div class="magnifier"></div>
					<input placeholder="搜索流行商品" class="search_content" type="text" />
					<input class="sub" type="submit" value="搜索" />
				</div><!--container-->
			</div><!--outside-->
		</div><!--search-->
	<!--搜索区域结束-->
	
	<!--导航条开始-->
	<div id="nav">
		<div class="outer">
			<ul class=container>
				<li><a class="first" href="<?php echo U('Index/index');?>">首页</a></li>
				<?php $cate=K('Category')->get_all_data(array('pid'=>0));
		
		foreach ($cate as $k => $v) {
			$cate[$k]['son']=K('Category')->get_all_data_notree(array('pid'=>$v['cid']));
			foreach ($cate[$k]['son'] as $key => $value) {
				$cate[$k]['son'][$key]['son']=K('Category')->get_all_data_notree(array('pid'=>$value['cid']));
			}
		} ?>
				<?php foreach ($cate as $k=>$v){?>
				<li class="top_cate">
					<a class="" href="<?php echo U('List/index',array('cid'=>$v['cid']));?>"><?php echo $v['cname'];?><span class="triangle"></span></a>
					<div class="second_stage">
						<?php foreach ($v["son"] as $key=>$value){?>
						<a href="<?php echo U('List/index',array('cid'=>$value['cid']));?>"><?php echo $value['cname'];?></a>
						<?php }?>
					</div><!--second_stage-->
				</li>
				<?php }?>
			</ul><!--container-->
		</div><!--outer-->
	</div><!--nav-->

	<!--导航条结束-->

	<!--导航条结束-->
	
	<!--顶部图片开始-->
	<div id="pic">
		<a href=""><img src="./img/head.jpg" alt="" /></a>
	</div>
	
	<!--顶部图片结束-->
	
	<div id="total">
	<!--左部栏目开始-->
		<div class="left_container">
			<?php foreach ($data as $key=>$value){?>
			<h3><a style="color: #666666;" href="<?php echo U('List/index',array('cid'=>$value['cid']));?>"><?php echo $value['cname'];?></a></h3>
				<?php foreach ($value["son"] as $ke=>$val){?>
			<dl>
				<dt><a style="color: #FF6699;" href="<?php echo U('List/index',array('cid'=>$val['cid']));?>"><?php echo $val['cname'];?></a></dt>
				<?php foreach ($val["son"] as $k=>$v){?>
				<dd><a href="<?php echo U('List/index',array('cid'=>$v['cid']));?>"><?php echo $v['cname'];?></a></dd>
				<?php }?>
			</dl>
				<?php }?>
			<?php }?>
			
			<div class="search">
				<form action="" method="post">
					<input class="text" placeholder="去其他关键词" type="text" />
					<input class="submit" type="submit" value="搜索"/>
				</form>
				
			</div><!--search-->
		</div><!--left_container-->
	<!--左部栏目结束-->
		
	<!--上部包包流行推荐轮播图开始-->
	<div class="right_container">
		<div class="recommend">
			<?php foreach ($data as $key=>$value){?>
			<h3><?php echo $value['cname'];?><span>流行推荐</span></h3>
			<ul>
				        <?php
        //初始化
        $hd['list']['g'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($good)) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($good as $g) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=4)break;
                //第几个值
                $hd['list'][g]['index']++;
                //第1个值
                $hd['list'][g]['first']=($listId == 0);
                //最后一个值
                $hd['list'][g]['last']= (count($good)-1 <= $listId);
                //总数
                $hd['list'][g]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
				<li>
					<a href="<?php echo U('Show/index',array('gid'=>$g['gid']));?>"><img style="width: 80px; height: 114px;" src="http://localhost/meilishuo/<?php echo $g['lthumb'];?>" alt="" /></a>
					<div class="div2">
					<a  href="<?php echo U('List/index',array('cid'=>$value['cid']));?>"><?php echo hd_substr($g['gname'],6,'...');?></a><br /><p><?php echo hd_substr($g['gname'],16,'...');?></p><a href="" class="total">共22611件宝贝>></a>
					</div>
				</li>
				<?php }}?>
				
			</ul>
			<?php }?>
			<a href="" class="trun_left">
				
			</a><!--trun_left-->
			<a href="" class="trun_right">
				
			</a><!--trun_right-->
		</div><!--recommend-->
	<!--上部包包流行推荐轮播图结束-->
		<!--排序选项条开始-->
		<!--<div class="order">
			<p><span>排序：</span><a class="active first" href="">流行</a><a href="">热销</a><a class="last">上新</a><span class="padding">价格：</span>
			<a class="active first" href="">全部</a>
			<a href="">0~100</a>
			<a href="">101~200</a>
			<a href="">201~500</a>
			<a href="" class="last">500以上</a></p>
			
		</div>--><!--order-->
		
		<div class="attr">
			<?php foreach ($attrFinal as $k=>$v){?>
				<?php 
					
					$temp=$param;
					$temp[$k] = 0;
				 ?>
			<p><span><?php echo $v['tpname'];?>：</span>
				<a     <?php if($param[$k]==0){ ?>class="active first"<?php } ?> href="<?php echo U('index',array('cid'=>$_GET['cid'],'param'=>implode('_',$temp)));?>">不限</a>
				<?php foreach ($v["tpvalue"] as $key=>$value){?>
					<?php 
						$temp[$k] = $value['gpid'];
					?>
				<a      <?php if($param[$k]==$value['gpid']){ ?>class="active first"<?php } ?>  href="<?php echo U('index',array('cid'=>$_GET['cid'],'param'=>implode('_',$temp)));?>"><?php echo $value['gpvalue'];?></a>
				<?php }?>
			</p>
			<?php }?>
		</div><!--attr-->
		

		<!--排序选项条结束-->
		
		<!--瀑布流开始-->
		
		<!--每款产品-->
		        <?php
        //初始化
        $hd['list']['g'] = array(
            'first' => false,
            'last'  => false,
            'total' => 0,
            'index' => 0
        );
        if (empty($good)) {
            echo '';
        } else {
            $listId = 0;
            $listShowNum=0;
            $listNextId=0;
            foreach ($good as $g) {
                //开始值
                if ($listId<0) {
                    $listId++;
                    continue;
                }
                //步长
                if($listId!=$listNextId){$listId++;continue;}
                //显示条数
                if($listShowNum>=18)break;
                //第几个值
                $hd['list'][g]['index']++;
                //第1个值
                $hd['list'][g]['first']=($listId == 0);
                //最后一个值
                $hd['list'][g]['last']= (count($good)-1 <= $listId);
                //总数
                $hd['list'][g]['total']++;
                //增加数
                $listId++;
                $listShowNum++;
                $listNextId+=1
                ?>
		<div class="flow">
			<a href="<?php echo U('Show/index',array('gid'=>$g['gid']));?>"><img style="width: 226px;height: 317px;" src="http://localhost/meilishuo/<?php echo $g['lthumb'];?>" alt="" /></a>
			<span class="price">￥138.00</span>
			<p class="cont"><a href="<?php echo U('Show/index',array('gid'=>$g['gid']));?>"><?php echo hd_substr($g['gname'],16,'...');?></a></p>
			<div class="container">
				<a href="<?php echo U('Show/index',array('gid'=>$g['gid']));?>" class="like"><span id="">
				</span>喜欢</a>
				<a href="<?php echo U('Show/index',array('gid'=>$g['gid']));?>" class="person">56</a>
				<a href="<?php echo U('Show/index',array('gid'=>$g['gid']));?>" class="sale">销量(88)</a>
			</div><!--container-->
			<!--<div class="bottom">
				<a class="img" href="<?php echo U('Show/index',array('gid'=>$g['gid']));?>"><img src="./img/thumb.jpg" alt="" /></a>
				<p><a href="">乡里来的公主</a><span>这是一款超美的包包，包身优美的线条剪裁设计，手提把与包身采用鳄鱼纹装饰的完美连接，无论是每一处细节还是整体，都是非常精美</span></p>
			</div>--><!--bottom-->
		</div><!--flow-->
		<?php }}?>
		<!--每款产品-->
		
				
		<!--瀑布流结束-->
	</div><!--right_container-->
		
	</div><!--total整体所有展示内容-->
	
	<!--底部开始-->
		<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!--尾部开始-->
	<div id="last">
		<ul class="head">
			<li class="first">
				<p class="title">4000-800-577</p>
				<p>美丽说客服热线</p>
				<p class="time">周一至周日：08:00-22:00</p>
			</li>
			<li>
				<p class="title">用户帮助</p>
				<a href="">新手指南</a>
				<a href="">网站地图</a>
				<a href="">意见反馈</a>
			</li>
			<li>
				<p class="title">关于我们</p>
				<a href="">关于美丽说</a>
				<a href="">联系我们</a>
				<a href="">加入美丽说</a>
				<a href="">商家进驻</a>
				<a href="">商家推广</a>
			</li>
			<li class="focus">
				<p class="title">关注我们</p>
				<a href=""><span class="xin"></span>新浪微博</a>
				<a href=""><span class="qq"></span>QQ空间</a>
				<a href=""><span class="teng"></span>腾讯微博</a>
			</li>
			<li class="">
				<p class="title">美丽说微信服务号</p>
				<img src="http://localhost/meilishuo/template/default/img/er.jpg" alt="" />
				
			</li>
			<li class="last">
				<p class="title">美丽说客户端下载</p>
				<a href=""><img src="http://localhost/meilishuo/template/default/img/download.png" alt="" /></a>
				
			</li>
		</ul><!--head-->
		<ul class="flink">
			<li>友情链接：</li>
			<li><a href="">乐淘网</a></li>
			<li><a href="">马可波罗悠哉旅游网</a></li>
			<li><a href="">优惠券应用汇</a></li>
			<li><a href="">爱乐活蜜芽宝贝</a></li>
			<li><a href="">趣分期大学生分期购物</a></li>
			<li><a href="">名鞋库</a></li>
			<li class="more"><a href="">更多&gt;&gt;</a></li>
		</ul><!--flink-->
		<div class="record">
			<p>Copyright ©2015 Meilishuo.com<a href="">电信与信息服务业务经营许可证100798号</a><a href="">企业法人营业执照</a>京ICP备11031139号  京公网安备110108006045 </p>
			<p>客服邮箱：kf@meilishuo.com  客服电话：4000-800-577  文明办网文明上网举报电话：010-82615762<a href="">违法不良信息举报中心</a><a href="">我最喜爱的人民警察评选&gt;&gt;</a></p>
		</div><!--record-->
	</div><!--last-->
	
	<!--尾部结束-->
	
	<!--底部结束-->
	
	
	
	
</body>
</html>